package com.ztorn.fiscale.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ztorn.common.core.annotation.Excel;
import com.ztorn.common.core.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 平台类型配置对象 fiscale_platform_type
 * 
 * @author ztorn
 * @date 2024-01-01
 */
public class FiscalePlatformType extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 平台类型ID */
    private Long typeId;

    /** 平台类型编码 */
    @Excel(name = "平台类型编码")
    private String typeCode;

    /** 平台类型名称 */
    @Excel(name = "平台类型名称")
    private String typeName;

    /** 平台描述 */
    @Excel(name = "平台描述")
    private String description;

    /** 平台Logo地址 */
    private String logoUrl;

    /** 配置字段JSON */
    private String configFields;

    /** 是否启用 */
    @Excel(name = "是否启用", readConverterExp = "0=停用,1=启用")
    private String isActive;

    /** 排序 */
    @Excel(name = "排序")
    private Integer sortOrder;

    public void setTypeId(Long typeId) 
    {
        this.typeId = typeId;
    }

    public Long getTypeId() 
    {
        return typeId;
    }

    public void setTypeCode(String typeCode) 
    {
        this.typeCode = typeCode;
    }

    public String getTypeCode() 
    {
        return typeCode;
    }

    public void setTypeName(String typeName) 
    {
        this.typeName = typeName;
    }

    public String getTypeName() 
    {
        return typeName;
    }

    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }

    public void setLogoUrl(String logoUrl) 
    {
        this.logoUrl = logoUrl;
    }

    public String getLogoUrl() 
    {
        return logoUrl;
    }

    public void setConfigFields(String configFields) 
    {
        this.configFields = configFields;
    }

    public String getConfigFields() 
    {
        return configFields;
    }

    public void setIsActive(String isActive) 
    {
        this.isActive = isActive;
    }

    public String getIsActive() 
    {
        return isActive;
    }

    public void setSortOrder(Integer sortOrder) 
    {
        this.sortOrder = sortOrder;
    }

    public Integer getSortOrder() 
    {
        return sortOrder;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("typeId", getTypeId())
            .append("typeCode", getTypeCode())
            .append("typeName", getTypeName())
            .append("description", getDescription())
            .append("logoUrl", getLogoUrl())
            .append("configFields", getConfigFields())
            .append("isActive", getIsActive())
            .append("sortOrder", getSortOrder())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}